const mongoose = require("mongoose");
const AccountSchema = new mongoose.Schema({
    content: { type: String, require: true }, // 事项内容
    date: { type: Date, require: true },      // 发生日期
    type: { type: Number, require: true },    // 收支类型
    money: { type: Number, require: true },   // 金额数值
    remark: { type: String, require: false }  // 备注信息
});
const AccountModel = mongoose.model("accounts", AccountSchema);
module.exports = AccountModel;
